Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Question #1

wants to merge 1 commit into from

Conversation

mysticvalley
Copy link

Please review above. Thanks.

Please review above. Thanks.
@larrylegend
Copy link
Owner

larrylegend commented May 21, 2019

Hey @mysticvalley. I'm not sure, this code sample still seems to work for me if I open in Xcode 10.2, change Swift version to Swift 4, and build and run on my iOS 12.2 iPhone X. However, there are several other solutions listed in the original context and answer here that might work better in your particular case: https://stackoverflow.com/a/52148520/2024046

(To test reloading, here's what I did:)

    override func viewDidAppear(_ animated: Bool) {
        DispatchQueue.main.asyncAfter(deadline: .now() + 2.0) {
            [weak self] in
            self?.collectionView.reloadData()
            print("reloaded collection view.")
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants